package edu.iyte.ceng431.hw2.pos.model;

import java.util.Date;

public class Return {

	private int id;
	private SaleLineItem sli;
	private Date date;
	private int quantity;

	public Return(int qntty, SaleLineItem returnItem) {
		this.quantity = qntty;
		this.sli = returnItem;
        this.date = new java.util.Date();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public void setSli(SaleLineItem sli) {
		this.sli = sli;
	}

	public SaleLineItem getSli() {
		return sli;
	}
	
	public int getSaleLlineItemId()
	{
		return sli.getId();
	}


}
